package Data_Structure.DataType;

import Data_Structure.DataImplement.Gender;
import Data_Structure.DataImplement.Name;
import lombok.Data;

import java.util.HashMap;

/**
 * The type of Traveller
 *
 * @author Yibai Jiang
 * @author XiaorunWang
 * @since 30 March 2022
 * @version 1.0
 */
@Data
public class Traveller implements Name {

    /**
     * The flight schedule of a traveller.
     */
    private HashMap<String, MyFlight> flight;

    /**
     * The ID number of the traveller.
     */
    private String personID;

    /**
     * The Surname.
     */
    private String surname;

    /**
     * The Firstname.
     */
    private String firstname;

    /**
     * The Full name. To use full name, call makeFullName method first.
     */
    private String fullName;

    /**
     * The Gender.
     */
    private Gender.GenderE gender;

    /**
     * Method to make full name.
     */
    @Override
    public void makeFullName() {
        setFullName(getFirstname() + getSurname());
    }
}
